package ar.com.source.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper;

import ar.com.source.dominio.Empleado;
import ar.com.source.dto.DiasAlertaDTO;

public class DiasAlertaRowMapper implements RowMapper<DiasAlertaDTO> {

	@Override
	public DiasAlertaDTO mapRow(ResultSet rs, int arg1) throws SQLException {
		DiasAlertaDTO diaAlerta = new DiasAlertaDTO();
		diaAlerta.setFecha(rs.getTimestamp("fecha").toString());
		diaAlerta.setAlert(rs.getBoolean("alerta"));
		
		
		return diaAlerta;
	}

}
